package own.stu.jobgib.playown.dp.adpater.refactor_1;

import lombok.AllArgsConstructor;
import lombok.Data;
import own.stu.jobgib.playown.dp.adpater.raw.ASensitiveWordsFilter;

@Data
@AllArgsConstructor
public class AAdapterFilter implements SensitiveFilter {

    private ASensitiveWordsFilter filter;

    @Override
    public String filter(String text) {
        text = filter.filterPoliticalWords(text);
        return filter.filterSexyWords(text);
    }
}

